package com.jt.springboot_demo1.pojo;

import com.sun.org.apache.bcel.internal.generic.RETURN;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/22 9:38
 */
@Data//用于get，set，toString，可以校验 Ctrl+F12或Alt+7
@Accessors(chain = true)//注解后面不要加；
public class User {
    private Integer id;
    private String name;

    public User setId(Integer id) {
        this.id = id;
        return this;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }
}
